#ifndef RENAMEDIALOG_H
#define RENAMEDIALOG_H

#include <QDialog>
#include <QAbstractButton>

namespace Ui {
class RenameDialog;
}

class RenameDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit RenameDialog(const QString & from, bool isFile, QWidget *parent);
    ~RenameDialog();
    
    void closeEvent(QCloseEvent *);

signals:
    void renamed(QString from, QString to);

private slots:
    void on_buttonBox_accepted();
    void on_buttonBox_rejected();

private:
    Ui::RenameDialog *ui;
    QString _from, to;
};

#endif // RENAMEDIALOG_H
